﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Pathfinding;

public class EagleController : MonoBehaviour
{
    public AIPath path;


    void Update()
    {
        if (path.desiredVelocity.x > Mathf.Epsilon)
        {
            transform.localScale = new Vector3(-1, 1, 1);
        } else if (path.desiredVelocity.x < -Mathf.Epsilon)
        {
            transform.localScale = new Vector3(1, 1, 1);
        }
    }
}
